Release 10.1A: OpenEdge Development:
Programming Interfaces
Obtaining access to COM objects
To access a COM object, you have to define a component handle for it and set the handle value using the appropriate object instantiation:
To instantiate an Automation object, you use the
CREATEAutomation Object statement. For more information, on instantiating Automation objects, see Chapter 15, " ActiveX Automation Support."To instantiate an ActiveX control, you use the AppBuilder at design time to select and configure the control, and to generate the 4GL that instantiates the control at runtime. This AppBuilder-generated 4GL includes the
CREATEWidget statement to create the control-frame widget and theLoadControls()method to associate the control instance with the control-frame COM object. For more information on instantiating ActiveX controls, see Chapter 16, " ActiveX Control Support."Access to COM object properties and methods is the same for both Automation objects and ActiveX controls. Progress supports event management for both Automation objects and ActiveX controls. For information on ActiveX Automation object event management, see Chapter 15, " ActiveX Automation Support." For information on ActiveX control event management, see Chapter 16, " ActiveX Control Support."
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |